package com.bilin.coin.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class CoinRecordBean {


    /**
     * records : [{"address":"string","adminId":"string","amount":0,"coinId":0,"confirmTimes":0,"createTime":"2019-09-26T11:16:04.665Z","fees":0,"hash":"string","id":0,"status":0,"type":0,"updateTime":"2019-09-26T11:16:04.665Z","userId":0,"version":0}]
     * total : 0
     */

    private int total;
    private List<RecordsBean> records;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<RecordsBean> getRecords() {
        return records;
    }

    public void setRecords(List<RecordsBean> records) {
        this.records = records;
    }

    public static class RecordsBean implements Parcelable {
        /**
         * address : string
         * adminId : string
         * amount : 0
         * coinId : 0
         * confirmTimes : 0
         * createTime : 2019-09-26T11:16:04.665Z
         * fees : 0
         * hash : string
         * id : 0
         * status : 0
         * type : 0
         * updateTime : 2019-09-26T11:16:04.665Z
         * userId : 0
         * version : 0
         */

        private String address;
        private String adminId;
        private double amount;
        private int coinId;
        private int confirmTimes;
        private String createTime;
        private double fees;
        private String hash;
        private int id;
        private int status;
        private int type;
        private String updateTime;
        private int userId;
        private int version;

        protected RecordsBean(Parcel in) {
            address = in.readString();
            adminId = in.readString();
            amount = in.readDouble();
            coinId = in.readInt();
            confirmTimes = in.readInt();
            createTime = in.readString();
            fees = in.readDouble();
            hash = in.readString();
            id = in.readInt();
            status = in.readInt();
            type = in.readInt();
            updateTime = in.readString();
            userId = in.readInt();
            version = in.readInt();
        }

        public static final Creator<RecordsBean> CREATOR = new Creator<RecordsBean>() {
            @Override
            public RecordsBean createFromParcel(Parcel in) {
                return new RecordsBean(in);
            }

            @Override
            public RecordsBean[] newArray(int size) {
                return new RecordsBean[size];
            }
        };

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getAdminId() {
            return adminId;
        }

        public void setAdminId(String adminId) {
            this.adminId = adminId;
        }

        public double getAmount() {
            return amount;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        public int getCoinId() {
            return coinId;
        }

        public void setCoinId(int coinId) {
            this.coinId = coinId;
        }

        public int getConfirmTimes() {
            return confirmTimes;
        }

        public void setConfirmTimes(int confirmTimes) {
            this.confirmTimes = confirmTimes;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public double getFees() {
            return fees;
        }

        public void setFees(double fees) {
            this.fees = fees;
        }

        public String getHash() {
            return hash;
        }

        public void setHash(String hash) {
            this.hash = hash;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public int getVersion() {
            return version;
        }

        public void setVersion(int version) {
            this.version = version;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(address);
            dest.writeString(adminId);
            dest.writeDouble(amount);
            dest.writeInt(coinId);
            dest.writeInt(confirmTimes);
            dest.writeString(createTime);
            dest.writeDouble(fees);
            dest.writeString(hash);
            dest.writeInt(id);
            dest.writeInt(status);
            dest.writeInt(type);
            dest.writeString(updateTime);
            dest.writeInt(userId);
            dest.writeInt(version);
        }
    }
}
